global variables use in call backs in matlab